import { createVNode, render } from 'vue'
import tooltip from './index.vue'

export default function useTooltip(formatterList: unknown, fh?: string) {
  const box = document.createElement('div')
  const vNode = createVNode(
    tooltip,
    {
      formatterList,
      fh
    },
    {}
  )
  render(vNode, box)
  return box.innerHTML
}
